package com.qq.rtxtest.logback;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ThridController {

    private static Logger logger = LoggerFactory.getLogger(ThridController.class);

    @RequestMapping(value = "thirdtest")
    public String changeLogLevel() {
        logger.info("这是ThridController的Info啊");
        logger.error("这是ThridController的error啊");
        logger.debug("这是ThridController的debug啊");
        logger.trace("这是ThridController的trace啊");
        logger.warn("这是ThridController的warn啊111");
        return "success";
    }
}
